package com.JDK动态代理.dao;

import com.JDK动态代理.MyInvocationHandler;
import com.JDK动态代理.dao.impl.SmsServiceImpl;

public class TestJDKProxy {
    public static void main(String[] args) {
        SmsService proxy = (SmsService) MyInvocationHandler.getProxy(new SmsServiceImpl());
        proxy.sendMessage("JDK动态代理");
    }
}
